John Wiegley [Tue, 12 Jan 2016 06:48:07 +0000 (22:48 -0800)]
Merge from origin/emacs-25
6ee327d Add handle_user_signal_hook
47580e0 Avoid writing to purespace
0588be7 Remove unused variable
89e7483 * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.
3b95e9c Use posix_openpt instead of openpty on Darwin
86312ff Document support for ':documentation' in Lisp mode
c930e75b Document new features of TeX mode
7c83d84 Clarify docs of hscroll in RTL text
4c8f8db Fix rendering of HTML pages that use character composition
a8d37ca Avoid some compiler warnings in w32.c
ce106f3de Undo ill-advised change
be0bba4 Unbreak completion in python-mode buffers
Glenn Morris [Sun, 10 Jan 2016 11:24:04 +0000 (06:24 -0500)]
; Auto-commit of ChangeLog files.
Andrew Hyatt [Sat, 9 Jan 2016 05:14:03 +0000 (00:14 -0500)]
Adding example replies to bug-triage.
* admin/notes/bug-triage: Added example replies. Also, as requested,
making the process notes into more of a checklist.
Andrew Hyatt [Sat, 9 Jan 2016 04:04:59 +0000 (23:04 -0500)]
Rename the notes/admin/triage file to bug-triage.
* CONTRIBUTE: Change reference to the triage file name.
* admin/notes/triage: Rename file to admin/notes/bug-triage.
K. Handa [Fri, 8 Jan 2016 14:21:43 +0000 (23:21 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
K. Handa [Fri, 8 Jan 2016 14:21:15 +0000 (23:21 +0900)]
Fix outdated comments.
Glenn Morris [Thu, 7 Jan 2016 07:51:34 +0000 (23:51 -0800)]
; * lisp/emacs-lisp/autoload.el (autoload-timestamps): Doc tweak.
Glenn Morris [Thu, 7 Jan 2016 07:35:53 +0000 (23:35 -0800)]
; * lisp/emacs-lisp/autoload.el update-directory-autoloads): Fix typo in previous.
Glenn Morris [Thu, 7 Jan 2016 07:33:33 +0000 (23:33 -0800)]
Allow creation of loaddefs files without timestamps.
* lisp/emacs-lisp/autoload.el (autoload-timestamps): New variable.
(autoload-generate-file-autoloads, update-directory-autoloads):
If autoload-timestamps is nil, write "t" instead of file timestamp.
(autoload-find-destination, update-directory-autoloads):
If timestamp is "t", use the modtime of the output file instead.
; * etc/NEWS: Mention this.
Glenn Morris [Thu, 7 Jan 2016 01:49:26 +0000 (20:49 -0500)]
; * etc/NEWS (Changes in Frame- and Window- Handling): Demote section.
Glenn Morris [Thu, 7 Jan 2016 01:45:14 +0000 (20:45 -0500)]
; * etc/NEWS: Add other main section headings for 25.2.
Glenn Morris [Wed, 6 Jan 2016 23:48:40 +0000 (18:48 -0500)]
; * lisp/Makefile.in: Comment update.
Glenn Morris [Wed, 6 Jan 2016 23:34:22 +0000 (18:34 -0500)]
Doc tweaks.
* lisp/calendar/cal-hebrew.el (diary-hebrew-list-entries):
* lisp/calendar/cal-iso.el (calendar-iso-to-absolute)
(calendar-iso-from-absolute):
* lisp/calendar/cal-tex.el (cal-tex-comment):
* lisp/calendar/solar.el (calendar-time-display-form): Doc tweaks.
Glenn Morris [Wed, 6 Jan 2016 23:25:47 +0000 (18:25 -0500)]
Build tweaks related to tags files.
* lib-src/Makefile.in (tagsfiles): New variable.
(TAGS): Also depend on the source files. Use our own etags program.
* lisp/Makefile.in (ETAGS): Add EXEEXT.
(lisptagsfiles1, lisptagsfiles2, lisptagsfiles3, lisptagsfiles4):
Remove.
(tagsfiles): New, replacing lisptagsfiles1 etc.
Remove irrelevant source files here rather than in the TAGS rule.
(${ETAGS}): New rule.
(TAGS): Also depend on the etags executable.
* lwlib/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): Add EXEEXT.
(${ETAGS}): New rule.
(ctagsfiles): Use "wildcard".
(TAGS): Also depend on the etags executable.
* nt/Makefile.in (ETAGS, tagsfiles): New variables.
(${ETAGS}): New rule.
(TAGS): Fix dependencies.
* oldXMenu/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): New variable, replacing $TAGS. Use our own etags program.
Remove "-t" argument.
(${ETAGS}): New rule.
(tagsfiles): New variable.
(TAGS): New rule, with proper dependencies.
* src/Makefile.in (ETAGS): Add EXEEXT. Add a build rule.
(ctagsfiles1, ctagsfiles2): Use "wildcard".
(ctagsfiles3): Remove.
(TAGS): Depend on etags.
(../lisp/TAGS, $(lwlibdir)/TAGS): Let the rules in the relevant
directories decide if updates are needed.
Glenn Morris [Wed, 6 Jan 2016 22:40:00 +0000 (17:40 -0500)]
* lisp/Makefile.in (CAL_SRC): Skip calendar.el.
Glenn Morris [Wed, 6 Jan 2016 18:08:35 +0000 (13:08 -0500)]
* test/lisp/emacs-lisp/package-tests.el
(package-test-macro-compilation): Fixup branch merge.
Eli Zaretskii [Tue, 5 Jan 2016 18:21:03 +0000 (20:21 +0200)]
Fix fallout from merging emacs-25 branch in test/
* .gitignore: Update for the new place of biditest.txt.
* test/automated/: Directory removed. All files moved to their
proper places.
* test/etags/: Directory removed. All files moved to their proper
places.
* test/automated/url-parse-tests.el: File removed; it was an exact
copy of the same file in test/lisp/url/.
* test/automated/url-expand-tests.el: Moved to test/lisp/url/.
Eli Zaretskii [Tue, 5 Jan 2016 18:03:38 +0000 (20:03 +0200)]
; * etc/NEWS: Mention 2 newly introduced variables.
Paul Eggert [Mon, 4 Jan 2016 22:46:35 +0000 (14:46 -0800)]
Spelling fixes
Daniel Colascione [Mon, 4 Jan 2016 22:12:01 +0000 (14:12 -0800)]
Let users disable unsafe signal handling code
* src/keyboard.c (syms_of_keyboard): New user variables
`attempt-stack-overflow-recovery' and
`attempt-orderly-shutdown-on-fatal-signal'.
* src/sysdep.c (stack_overflow): Check
`attempt-stack-overflow-recovery'.
* src/emacs.c (terminate_due_to_signal): Check
`attempt-orderly-shutdown-on-fatal-signal'.
Bill Wohler [Mon, 4 Jan 2016 00:05:37 +0000 (16:05 -0800)]
; * .gitignore: Add lisp/mh-e/mh-autoloads.el.
Eli Zaretskii [Sun, 3 Jan 2016 17:25:19 +0000 (19:25 +0200)]
; * configure.ac: Improve wording of last commit.
Michael Albinus [Sun, 3 Jan 2016 16:34:32 +0000 (16:34 +0000)]
* configure.ac: Add error message for gfile on Nextstep.
Glenn Morris [Sun, 3 Jan 2016 11:25:27 +0000 (06:25 -0500)]
; Auto-commit of ChangeLog files.
K. Handa [Sun, 3 Jan 2016 08:53:43 +0000 (17:53 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
John Wiegley [Sun, 3 Jan 2016 07:31:52 +0000 (23:31 -0800)]
Merge branch 'emacs-25-merge'
Vincent Belaïche [Sat, 2 Jan 2016 15:59:42 +0000 (16:59 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Vincent Belaïche [Sat, 2 Jan 2016 15:59:03 +0000 (16:59 +0100)]
Align textually on fix done for emacs-25 branch for bug#21054
* lisp/ses.el (ses-check-curcell): Suppress ``temporary fix'' comment,
and useless `(if t ...)' in order to align textually on fix done for
emacs-25 branch for bug#21054.
K. Handa [Sat, 2 Jan 2016 07:36:21 +0000 (16:36 +0900)]
support rendering of wider range of combinging characters by ftfont backend
* lisp/language/hebrew.el (hebrew-shape-gstring): If the font backend
supports rendering of combining characters, call
font-shape-gstring.
* src/font.c (Ffont_get): Handle `combining-capability' property.
(syms_of_font): New symbol ":combining-capability'.
* src/font.h (struct font_driver): New member combining_capability.
* src/ftfont.c: Include "category.h".
(ftfont_driver): Initialize combining_capability to
ftfont_combining_capability.
(ftfont_shape_by_flt): If OTF is null, try to find a suitable
FLT in advance.
(ftfont_combining_capability): New function.
Xue Fuqiao [Sat, 2 Jan 2016 06:52:57 +0000 (14:52 +0800)]
; * etc/NEWS: Typo fix.
Andrew Hyatt [Fri, 1 Jan 2016 20:07:53 +0000 (15:07 -0500)]
Add notes on bug triage procedure
* CONTRIBUTE: In section on the issue tracker, point to new triage file.
* admin/notes/triage: New file explaining triage procedure.
Glenn Morris [Fri, 1 Jan 2016 11:18:06 +0000 (06:18 -0500)]
; Auto-commit of loaddefs files.
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 02:17:35 +0000 (11:17 +0900)]
Add handle_user_signal_hook
* src/keyboard.h (handle_user_signal_hook): New declaration.
* src/keyboard.c (handle_user_signal_hook): New variable.
(handle_user_signal): Call it.
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 01:59:40 +0000 (10:59 +0900)]
Avoid writing to purespace
* src/alloc.c (Fmake_string): Don't write to empty string contents.
(allocate_vector): Don't write to empty vector size.
* src/character.h (CHECK_CHARACTER_CAR, CHECK_CHARACTER_CDR):
Don't call unnecessary XSETCAR or XSETCDR.
* src/lisp.h (STRING_SET_UNIBYTE, STRING_SET_MULTIBYTE): Don't
write to empty string size_byte.
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 01:43:57 +0000 (10:43 +0900)]
Remove unused variable
* lisp/international/mule-cmds.el: Remove unused variable
`mac-system-coding-system'.
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 01:37:15 +0000 (10:37 +0900)]
* configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.
YAMAMOTO Mitsuharu [Thu, 31 Dec 2015 01:24:12 +0000 (10:24 +0900)]
Use posix_openpt instead of openpty on Darwin
* configure.ac (PTY_ITERATION, FIRST_PTY_LETTER, PTY_OPEN)
(PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Remove
Darwin-specific definitions. Use posix_openpt instead.
Vincent Belaïche [Wed, 30 Dec 2015 23:10:37 +0000 (00:10 +0100)]
Correct ses-rename-cell cursor-intangible text prop updating.
There were two problems:
- First ses-rename-cell has to work when called non interactively
(with non-nil CELL argument), so in this case the start pos of
put-text-property cannot be plainly (point), you need a
ses-goto-print call before
- Second, the range itself was computed erronously, only the first
char was affected instead of the full cell width. This was not
noticeable prior to changes (Deprecate `intangible' and
`point-entered' properties) made by Stefan on 2015-04-13T19:51:15Z
* lisp/ses.el (ses-rename-cell): Correct computation of position range
to which the 'cursor-intangible text property has to be set to cell
new name.
Shakthi Kannan [Wed, 30 Dec 2015 17:59:12 +0000 (19:59 +0200)]
Document support for ':documentation' in Lisp mode
* lisp/emacs-lisp/lisp-mode.el (lisp-string-in-doc-position-p)
(lisp-string-after-doc-keyword-p)
(lisp-font-lock-syntactic-face-function): Add doc strings.
Shakthi Kannan [Wed, 30 Dec 2015 17:46:55 +0000 (19:46 +0200)]
Document new features of TeX mode
* doc/emacs/text.texi (TeX Print): Document
'tex-print-file-extension'.
* doc/emacs/programs.texi (Misc for Programs): Document support
for Prettify Symbols mode in TeX mode.
Eli Zaretskii [Wed, 30 Dec 2015 17:13:44 +0000 (19:13 +0200)]
Clarify docs of hscroll in RTL text
* doc/lispref/windows.texi (Horizontal Scrolling): Clarify the
meaning of a window's horizontal scroll amount for RTL paragraphs.
Eli Zaretskii [Wed, 30 Dec 2015 17:00:19 +0000 (19:00 +0200)]
Fix rendering of HTML pages that use character composition
* src/indent.c (Fvertical_motion): Fix the case when point starts
in the middle of a composition, as in shr-vertical-motion.
(Bug#22250)
Vincent Belaïche [Wed, 30 Dec 2015 11:37:54 +0000 (12:37 +0100)]
Don't fake empty cells value by "" when printing with a lambda.
When using a lambda expression printer function the user should be
free to format differently a really empty cell, ie. containing nil,
from a cell containing an empty string "".
* ses.el (ses-call-printer): Replace `(or value "")' by just `value'
in the case of a lambda expression printer function.
* ses.texi (Printer functions): Add example and description about
lambda expression printer function handling all the possible values,
including unexpected ones.
Vincent Belaïche [Wed, 30 Dec 2015 10:57:29 +0000 (11:57 +0100)]
Quick temporary hack to fix curcell refreshing.
The problem was caused by change: 2015-04-13 Deprecate `intangible'
and `point-entered' properties. The problem is that this change has
removed the (setq ses--curcell t) setting in the ses-command-hook
function.
* ses.el (ses-check-curcell): replace `(eq ses--curcell t)' by just `t' as
a condition to call function `ses-set-curcell'. Comment this as a quick
temporary hack to make it work, as I don't know yet whether a definite
correction would be to make the ses-set-curcell at every ses-check-curcell,
or to revert to the previous approach, ie marking ses--curcell as out-of-date
at every potentially cursor motion command.
Eli Zaretskii [Wed, 30 Dec 2015 16:26:56 +0000 (18:26 +0200)]
Avoid some compiler warnings in w32.c
* src/w32.c (codepage_for_filenames, crlf_to_lf)
(ansi_encode_filename, socket_to_fd, sys_write)
(check_windows_init_file): Avoid compiler warnings about
differences in pointer signedness.
Lars Magne Ingebrigtsen [Wed, 30 Dec 2015 09:11:34 +0000 (10:11 +0100)]
Restrictive URL checking tweaks
* lisp/net/eww.el (eww): Check whether the domain is
restrictive instead of the string
(http://македонија.icom.museum is restrictive even if each
part is from a different script).
Lars Magne Ingebrigtsen [Wed, 30 Dec 2015 09:10:20 +0000 (10:10 +0100)]
New function `puny-highly-restrictive-domain-p'
* lisp/net/puny.el (puny-highly-restrictive-string-p): Rename.
(puny-highly-restrictive-domain-p): New function.
Lars Magne Ingebrigtsen [Wed, 30 Dec 2015 09:00:15 +0000 (10:00 +0100)]
eww build fix (require puny)
Lars Magne Ingebrigtsen [Wed, 30 Dec 2015 08:59:30 +0000 (09:59 +0100)]
Transform non-restrictive domains to punycode for display
* lisp/net/eww.el (eww): Check whether the domain is Highly
Restrictive in the Unicode IDNA sense.
John Wiegley [Wed, 30 Dec 2015 05:40:28 +0000 (21:40 -0800)]
Merge emacs-25 into master (using imerge)
Dmitry Gutov [Wed, 30 Dec 2015 04:25:39 +0000 (06:25 +0200)]
Undo ill-advised change
* lisp/progmodes/xref.el (xref-collect-matches): Undo
ill-advised change. The hits come in the order that `find'
produces them in, which isn't alphabetical.
Dmitry Gutov [Wed, 30 Dec 2015 04:24:08 +0000 (06:24 +0200)]
Unbreak completion in python-mode buffers
* lisp/progmodes/python.el (python-shell-completion-at-point):
Unbreak in python-mode buffers.
Eli Zaretskii [Tue, 29 Dec 2015 20:56:53 +0000 (22:56 +0200)]
Fix typos in CC Mode manual
* doc/misc/cc-mode.texi (c-offsets-alist, Style Variables): Fix
typos. (Bug#22267)
Eli Zaretskii [Tue, 29 Dec 2015 18:07:23 +0000 (20:07 +0200)]
Avoid assertion violations in compact_font_cache_entry
* src/alloc.c (compact_font_cache_entry): Don't use VECTORP to
avoid assertion violation in ASIZE. (Bug#22263)
Eli Zaretskii [Tue, 29 Dec 2015 16:49:57 +0000 (18:49 +0200)]
Fix filling text with bidirectional characters in shr.el
* lisp/net/shr.el (shr-insert-document): Bind
bidi-display-reordering to nil while filling lines. This is
required for when a line includes characters whose bidi
directionality is opposite to the base paragraph direction,
because columns are counted in the logical order. (Bug#22250)
Lars Ingebrigtsen [Tue, 29 Dec 2015 16:46:00 +0000 (17:46 +0100)]
Further Unicode restrictive fixups
* puny.el (puny-highly-restrictive-p): Include the extra
identifier characters from table 3.
Martin Rudalics [Tue, 29 Dec 2015 16:41:15 +0000 (17:41 +0100)]
* src/xfns.c (x_create_tip_frame): Process alpha parameter.
Michael Albinus [Tue, 29 Dec 2015 14:35:44 +0000 (15:35 +0100)]
Sync with Tramp 2.2.13
* doc/misc/trampver.texi: Change version to "2.2.13.25.1".
* lisp/net/tramp-compat.el (tramp-compat-delete-dups):
Use `tramp-compat-funcall'.
* lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names):
Make `split-string' call compatible with older Emacsen.
* lisp/net/trampver.el: Change version to "2.2.13.25.1".
Lambda Coder [Tue, 29 Dec 2015 14:33:54 +0000 (15:33 +0100)]
* doc/misc/tramp.texi: Editorial revisions to the Tramp manual
Lars Ingebrigtsen [Tue, 29 Dec 2015 13:46:40 +0000 (14:46 +0100)]
Mention that tls.el is secure by default, and will fail
Lars Ingebrigtsen [Tue, 29 Dec 2015 13:46:20 +0000 (14:46 +0100)]
Make tls.el use trustfiles by default
* lisp/net/tls.el (tls-program): Add a certfile by default (bug#21227).
(open-tls-stream): Insert the trustfile by looking at
`gnutls-trustfiles'.
Lars Ingebrigtsen [Tue, 29 Dec 2015 13:39:53 +0000 (14:39 +0100)]
Refactor out gnutls-trustfiles
* lisp/net/gnutls.el (gnutls-trustfiles): Refactor out for reuse by tls.el.
Lars Ingebrigtsen [Tue, 29 Dec 2015 13:30:53 +0000 (14:30 +0100)]
Remove --insecure from gnutls-cli invocation
* tls.el (tls-program): Default to using secure TLS
connections (bug#19284).
Lars Ingebrigtsen [Tue, 29 Dec 2015 11:40:55 +0000 (12:40 +0100)]
Add a new function to say whether a string is restrictive
* puny.el (puny-highly-restrictive-p): New function.
Paul Eggert [Tue, 29 Dec 2015 03:05:50 +0000 (19:05 -0800)]
Spelling fix
Paul Eggert [Tue, 29 Dec 2015 02:43:09 +0000 (18:43 -0800)]
Port report-emacs-bug to deterministic builds
* lisp/mail/emacsbug.el (report-emacs-bug): Future-proof the
recent "built on" change to deterministic builds where
emacs-build-system will be nil. See:
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg01369.html
Dmitry Gutov [Tue, 29 Dec 2015 01:53:32 +0000 (03:53 +0200)]
; * lisp/progmodes/project.el: Update TODO
Jose A. Ortega Ruiz [Tue, 29 Dec 2015 00:27:48 +0000 (01:27 +0100)]
Fix URL auth error message
* lisp/url/url-http.el (url-http-handle-authentication): Make the error
message more correct (bug#20069).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Mon, 28 Dec 2015 23:11:34 +0000 (00:11 +0100)]
Mention the new puny.el library
Lars Ingebrigtsen [Mon, 28 Dec 2015 23:11:06 +0000 (00:11 +0100)]
IDNA-related fixes for the URL library
* lisp/url/url-http.el (url-http-create-request): IDNA-encode
the Host: header.
* lisp/url/url-util.el (url-encode-url): Don't hex-encode
domain names, but leave them as UTF-8, so that they can be
IDNA-encoded later when contacting the host.
Lars Ingebrigtsen [Mon, 28 Dec 2015 23:09:10 +0000 (00:09 +0100)]
IDNA-encode all domain names in `open-network-stream'
* network-stream.el (open-network-stream)
(network-stream-open-plain, network-stream-open-starttls):
IDNA-encode all domain names, if needed.
Lars Ingebrigtsen [Mon, 28 Dec 2015 23:07:50 +0000 (00:07 +0100)]
Fix puny-encoding all-non-ASCII domains
* puny.el (puny-encode-string): Fix the all-non-ASCII encoding case.
Lars Ingebrigtsen [Mon, 28 Dec 2015 20:55:18 +0000 (21:55 +0100)]
shr link traversal fixup
* shr.el (shr-next-link): Don't bug out on adjacent links.
Backport:
(cherry picked from commit
1efc5f8b09273c359683ce13be95fb5df7a84311)
Lars Ingebrigtsen [Mon, 28 Dec 2015 20:55:18 +0000 (21:55 +0100)]
shr link traversal fixup
* shr.el (shr-next-link): Don't bug out on adjacent links.
Tom Tromey [Mon, 28 Dec 2015 20:00:56 +0000 (13:00 -0700)]
set :safe on css-indent-offset
* lisp/textmodes/css-mode.el (css-indent-offset): Add :safe 'integerp.
Lars Ingebrigtsen [Mon, 28 Dec 2015 20:02:43 +0000 (21:02 +0100)]
* eww.el (eww-mode): Remove superfluous bidi reset.
James Stout [Mon, 28 Dec 2015 19:49:57 +0000 (20:49 +0100)]
Make chunked encoding trailer detection more compliant
* lisp/url/url-http.el
(url-http-chunked-encoding-after-change-function): Make
trailer detection more compliant (bug#16345).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Mon, 28 Dec 2015 19:52:41 +0000 (20:52 +0100)]
Reconnect erc even on server errors
* lisp/erc/erc-backend.el (erc-server-reconnect-p): Try to
reconnect even if a server error has occurred (bug#18527).
Lars Ingebrigtsen [Mon, 28 Dec 2015 18:13:51 +0000 (19:13 +0100)]
Fix punycode short circuit logic
* puny.el (puny-encode-domain): Fix short-circuit logic.
Martin Rudalics [Mon, 28 Dec 2015 18:11:22 +0000 (19:11 +0100)]
Fix Bug#10873 in `report-emacs-bug'
* lisp/mail/emacsbug.el (report-emacs-bug): If
`report-emacs-bug-no-explanations' is nil, make sure we can show
mail and warnings buffer on this frame (Bug#10873).
Lars Ingebrigtsen [Mon, 28 Dec 2015 17:47:51 +0000 (18:47 +0100)]
IDNA speed up
* puny.el (puny-encode-domain): Make the common non-IDNA case faster
Lars Ingebrigtsen [Mon, 28 Dec 2015 17:41:13 +0000 (18:41 +0100)]
Add IDNA domain encode/decode functions
* puny.el (puny-decode-domain): New function.
(puny-encode-domain): Ditto.
(puny-decode-digit): Fix digit decoding error.
Lars Ingebrigtsen [Mon, 28 Dec 2015 17:21:20 +0000 (18:21 +0100)]
Rename idna.el to puny.el
* puny.el: Renamed from idna.el to avoid name collisions with
the external idna.el library.
Lars Ingebrigtsen [Mon, 28 Dec 2015 17:11:56 +0000 (18:11 +0100)]
Always reset the bidi direction
* eww.el (eww-display-html): Always reset the bidi direction
to `left-to-right' (bug#22257).
Alan Mackenzie [Mon, 28 Dec 2015 16:01:05 +0000 (16:01 +0000)]
Allow line comments ending with escaped NL to be continued to the next line.
Use this in C, C++, and Objective C Modes. Fixes bug#22246
* src/syntax.c (comment-end-can-be-escaped): New buffer local variable.
(forw-comment, back-comment): On encountering an end of comment character,
test whether it is escaped when `comment-end-can-be-escaped' is non-nil.
* doc/lispref/syntax.texi (Control Parsing): Describe
`comment-end-can-be-escaped'.
* etc/NEWS (Lisp Changes): Describe `comment-end-can-be-escaped'.
* lisp/progmodes/cc-langs.el: New c-lang-setvar `comment-end-can-be-escaped'.
Katsumi Yamaoka [Mon, 28 Dec 2015 05:34:12 +0000 (05:34 +0000)]
lisp/gnus/mml-sec.el (mml-secure-bcc-is-safe): Keep old Emacsen compatibility
* lisp/gnus/mml-sec.el (mml-secure-bcc-is-safe):
Don't use split-string with 4th arg for old Emacsen compatibility.
Dmitry Gutov [Mon, 28 Dec 2015 04:17:19 +0000 (06:17 +0200)]
Rename project-library-roots to project-external-roots
* lisp/progmodes/project.el (project-library-roots): Rename to
project-external-roots.
(project-library-roots-function): Rename to
project-vc-external-roots-function. Only use it in the VC
backend, for now. Update project-external-roots accordingly.
(project-vc-library-roots): Remove.
(project-or-libraries-find-regexp):
Rename to project-or-external-find-regexp.
* lisp/progmodes/elisp-mode.el (elisp-library-roots):
Rename to elisp-load-path-roots.
* lisp/progmodes/etags.el (etags-library-roots): Remove. Use
an anonymous function for the default value of
project-vc-external-roots-function.
Lars Ingebrigtsen [Mon, 28 Dec 2015 03:15:16 +0000 (04:15 +0100)]
* idna.el (idna-decode-string-internal): Implement decoding.
Lars Ingebrigtsen [Mon, 28 Dec 2015 01:57:40 +0000 (02:57 +0100)]
Further IDNA tweaks
(idna-encode-string): Make idna-encode-string safe for
non-ASCII use.
Lars Ingebrigtsen [Mon, 28 Dec 2015 01:55:52 +0000 (02:55 +0100)]
Clean up the code slightly
Lars Ingebrigtsen [Mon, 28 Dec 2015 01:46:50 +0000 (02:46 +0100)]
Added basic idna encoding support
* lisp/net/idna.el: New file.
Vivek Dasmohapatra [Sun, 27 Dec 2015 22:28:52 +0000 (23:28 +0100)]
Disconnection fixes for erc
* lisp/erc/erc-backend.el (erc-server-reconnect-p): Don't
reconnect if the user has disconnected explicitly (bug#4589).
Thomas Riccardi [Sun, 27 Dec 2015 22:14:13 +0000 (23:14 +0100)]
Further erc asynch fixes
* lisp/erc/erc-backend.el (erc-process-sentinel-2): Make
erc-server-connect to return even if the connection is not
ready. Then erc-open and erc-server-reconnect do the
same. (bug#5650).
Copyright-paperwork-exempt: yes
Vivek Dasmohapatra [Sun, 27 Dec 2015 22:12:30 +0000 (23:12 +0100)]
Make erc connect asynchronously
* lisp/erc/erc-backend.el (erc-server-reconnect): Use it to
reconnect asynchronously.
* lisp/erc/erc-backend.el (erc-open-network-stream): New function (bug#5650).
Deniz Dogan [Sun, 27 Dec 2015 21:36:55 +0000 (22:36 +0100)]
Clear erc user list upon disconnection
* lisp/erc/erc-backend.el (erc-process-sentinel): Clear channel user
lists upon disconnection. This prevents invalid channel
user lists when reconnecting (bug#10947).
Lars Ingebrigtsen [Sun, 27 Dec 2015 21:18:32 +0000 (22:18 +0100)]
Don't bug out in erc after waking from sleep
* erc-backend.el (erc-server-send-ping): If the server has
closed connection, this may already have been detected and
`erc-server-last-received-time' has been set to nil (bug#13608).
David Edmondson [Sun, 27 Dec 2015 20:33:01 +0000 (21:33 +0100)]
Proxy error in erc with multiple clients
* lisp/erc/erc.el (erc-channel-receive-names): Fix errors
generated when multiple IRC clients talk to a single IRC proxy
(bug#19034).
Backport:
(cherry picked from commit
507e98a54d1aa37823c64993d6b59257a82fe8f4)
David Edmondson [Sun, 27 Dec 2015 20:33:01 +0000 (21:33 +0100)]
Proxy error in erc with multiple clients
* lisp/erc/erc.el (erc-channel-receive-names): Fix errors
generated when multiple IRC clients talk to a single IRC proxy
(bug#19034).
Dima Kogan [Sun, 27 Dec 2015 20:19:13 +0000 (21:19 +0100)]
Ensure that we don't have several timers in erc
* lisp/erc/erc-backend.el (erc-server-setup-periodical-ping): Checks
for existing timers in the alist before adding new ones. If a
timer already exists, it is cancelled and
overwritten. (bug#19292).
Jens Lechtenboerger [Sun, 27 Dec 2015 20:12:16 +0000 (21:12 +0100)]
Fix mml-sec build warnings
* lisp/gnus/mml-sec.el: Fix warnings by adding autoloads
(bug#18718).
Backport:
(cherry picked from commit
3603097f62f5f4aa5451716e9ac380161f6829e2)